﻿using System.Linq;
using System.Text;
using System.Collections;
using RAP.Framework.Libary.Utils;
using RAP.Framework.Libary.DomTemplateBuilder.Interface;

namespace RAP.Framework.Libary.DomTemplateBuilder.Handler.ArrayListActions.Add
{
	/// <summary>
	/// 添加一个Dictionary对象到字典项的Handler
	/// </summary>
	public class AddDictionaryActionHandler : ArrayListAddActionHandler
    {
        public override void DoRender ( StringBuilder writer, object rootParamObject, object parentParamObject, ITemplateRenderContext context )
        {
			var list = context.ToList( ArrayListActionHandler.ARRAY_LIST_OBJECT );
			list.Add ( new Hashtable ( ) );
        }
    }
}
